package cn.sany.cterminal.dao;

import cn.sany.cterminal.entity.VehicleOperateRecord;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface VehicleOperateRecordDao {
    int deleteByPrimaryKey(Integer id);

    int insert(VehicleOperateRecord record);

    int insertSelective(VehicleOperateRecord record);

    VehicleOperateRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VehicleOperateRecord record);

    int updateByPrimaryKey(VehicleOperateRecord record);

    /**
     *
     * @Method : countVehicleByType
     * @Description : 根据类型获取今天车辆操作记录
     * @param register :
     * @return : java.lang.Integer
     * @author : zhouxing
     * @CreateDate : 2020-09-14 17:12:34
     *
     */
    Integer countVehicleByType(int register);
    /**
     *
     * @Method : countYesterdayVehicleByType
     * @Description : 根据类型获取昨天车辆操作记录
     * @param register :
     * @return : java.lang.Integer
     * @author : zhouxing
     * @CreateDate : 2020-09-14 17:12:56
     *
     */
    Integer countYesterdayVehicleByType(int register);
}